var MagicDropDown = Class.create({
  initialize: function(select_item) {
    select_item.form.select('input').first().hide();
    select_item.observe('change', this.submitForm.bindAsEventListener(select_item));
  },
  
  submitForm: function() {
    if (this.select('id') !== null) {
      this.form.submit();
    }
  }
})